package com.example.order.rpc.provider;

import com.example.apis.order.OrderProvider;
import com.example.order.service.OrderService;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * 订单 同步接口层 具体实现
 *
 * @author Lv
 * @date 2023/10/02
 */
@DubboService
public class OrderProviderImpl implements OrderProvider {

    @Autowired
    private OrderService orderService;

    /**
     * 测试order服务RPC调用
     *
     * @return
     */
    @Override
    public String testOrderRpc() {
        return orderService.testOrderRpc();
    }
}
